<template>
    <main>
        <router-view />
    </main>
</template>

<script setup>
import { useStore } from 'vuex'
import { provide } from 'vue'
import axios from '@/plugins/axios'
const store = useStore()
store.dispatch('news/load')
provide('axios', axios)
</script>

<style lange="scss">
main {
    @apply w-8/12 mx-auto p-5 bg-gray-300;
}
</style>
